// SentencesSet.h: interface for the CSentencesSet class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_SENTENCESSET_H__406C7D8E_3CC9_4839_898F_F19C4E0AA80D__INCLUDED_)
#define AFX_SENTENCESSET_H__406C7D8E_3CC9_4839_898F_F19C4E0AA80D__INCLUDED_
#include "StdAfx.h"

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class SEG
{
public:
	string F, B;
	string ALL;
	VOID SetFB( string* all){
		ALL = *all;
		if ( ALL.length()==0 ) return ;
		int pos = string::npos;
		pos = ALL.find( "#" , 0);
		if (pos != string::npos )
		{
			F = ALL.substr( 0, pos);
			B = ALL.substr( pos + 1);
		}
	}
};

class CSentencesSet  
{
public:
	CSentencesSet();
	virtual ~CSentencesSet();
	HRESULT InitSentencesSEG();
	LRESULT SegmentsText( CString pStr );
	LRESULT IsCOLTD( CString pstr );
	SEG* m_Sentences; int m_SentencesLen;
	string* m_Numbers; int m_NumbersLen;
	string* m_COLTDs; int m_Coltdslen;
public:
	CString m_filename ;
};

#endif // !defined(AFX_SENTENCESSET_H__406C7D8E_3CC9_4839_898F_F19C4E0AA80D__INCLUDED_)
